<?php

declare (strict_types=1);
namespace App\Model;

/**
 * @property int $id 
 * @property int $from_uid 
 * @property int $to_uid 
 * @property string $msg_id 
 * @property string $chat_type 
 * @property string $payload 
 * @property string $from 
 * @property string $to 
 * @property string $timestamp 
 * @property int $status 
 * @property int $type 
 * @property int $time 
 */
class ChatMessage extends Model
{
    /**
     * The table associated with the model.
     *
     * @var string
     */
    protected $table = 'chat_message';
    /**
     * The attributes that are mass assignable.
     *
     * @var array
     */
    protected $fillable = ['id', 'from_uid', 'to_uid', 'msg_id', 'chat_type', 'payload', 'from', 'to', 'timestamp', 'status', 'type', 'time'];
    /**
     * The attributes that should be cast to native types.
     *
     * @var array
     */
    protected $casts = ['id' => 'integer', 'from_uid' => 'integer', 'to_uid' => 'integer', 'status' => 'integer', 'type' => 'integer', 'time' => 'integer'];
}